package br.unesp.rc.rafaelt.business.services.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import br.unesp.rc.rafaelt.business.services.MarkServices;
import br.unesp.rc.rafaelt.business.to.MarkListTO;
import br.unesp.rc.rafaelt.model.bean.Mark;
import br.unesp.rc.rafaelt.model.dao.MarkDao;

@Service
@Scope(value = "singleton")
public class MarkServicesImpl implements MarkServices {
	
    @Autowired
    private MarkDao markDao;
	
	@Transactional(readOnly = true, propagation = Propagation.SUPPORTS)
	public Mark findById(final Long id) {
		return markDao.findById(id);
	}
	
	@Transactional(readOnly = true, propagation = Propagation.SUPPORTS)
	public MarkListTO findAll() {
		return null;
	}

}